import { getCart } from "@/service/cart"

export default {
    async updateCart(context) {
        const { data } = await getCart();
        context.commit("addCart", {
            cartCount: data.length || 0,
        });
    }
}